#!/bin/sh

ver_old=$2

if [ "$(apk version -t "$ver_old" '0.10.0-r2')" = '<' ]; then
   # zig 0.10 upgrades libcxx which renames the __string header to a directory
   # https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10856
   rm -r /usr/lib/zig/libcxx/include/__string
fi

exit 0
